Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add test with different elevations #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HansOersted
Copy link
Contributor

@HansOersted HansOersted commented Dec 5, 2024

Description

Added a test with different elevations.

Tests performed

Not applicable.

Effects on system behavior

Not applicable.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

// https://www.movable-type.co.uk/scripts/latlong-utm-mgrs.html
// round the projected value to mm since the above reference only gives value
// in mm precision
ASSERT_EQ(projector.getProjectedMGRSGrid(), "54SUE") << "Projected grid should be "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is supposed to compare the return value of getProjectedMGRSGrid, which seems to be lost with the fixes in this PR.

Comment on lines -75 to -80
double rounded_lat = round(gps_point.lat * 1e8) / 1e8;
ASSERT_DOUBLE_EQ(rounded_lat, 35.65282525)
<< "Reverse projected latitude value should be " << 35.65282525;
double rounded_lon = round(gps_point.lon * 1e8) / 1e8;
ASSERT_DOUBLE_EQ(rounded_lon, 139.83947721)
<< "Reverse projected longitude value should be " << 139.83947721;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like the latitude and longitude comparisons to remain as they are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants